
    import {
        DIC
    } from '@/const/dic';
    import Store from '../../store/';
    const allPermission = Store.state.user.permission;
    const isAdmin = Store.state.user.userInfo.superAdmin;
    export const videoChannelTableOption = {
        border: false,
        index: false,
        selection: false,
        calcHeight: 350,
        columnBtn:false,
        searchClearable: false,
        selectClearBtn: false,
        searchResetBtn: false,
        height:"auto",
        menu: true,
        menuAlign: "center",
        searchBtn: true,
        labelWidth: 120,
        refreshBtn: true,
        tip:false,
        addBtn: false,
        dialogWidth: '800px',
        dialogHeight: 'auto',
        menuWidth: 160,
        // editBtn: isAdmin || !!allPermission['/video_channel/edit'],
        editBtn: false,
        viewBtn: false,
        delBtn: false,
        column: [
    // {
    //     "label": "主播",
    //     "prop": "userId",
    //     "search": false,
    //     "type": "text",
    //     "fixed": true,
    //     "width": "auto",
    //     "row": false,
    //     "minWidth": "120",
    //     "readonly": false,
    //     "span": 12,
    //     "display": true,
    //     "hide": false
    // },
    {
        "label": "手机号",
        "prop": "mobile",
        "search": true,
        "type": "text",
        "fixed": true,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false
    },
    {
        "label": "昵称",
        "prop": "nickName",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false
    },
    {
        "label": "姓名",
        "prop": "realName",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false
    },
    {
        "label": "频道编码",
        "prop": "channelNo",
        "search": true,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false,
        "rules": [
            {
                "required": true,
                "message": "请输入频道编码 ",
                "trigger": "blur"
            }
        ]
    },
    {
        "label": "状态",
        "prop": "status",
        "search": true,
        "type": "tag",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false,
        "rules": [
            {
                "required": true,
                "message": "请输入状态",
                "trigger": "blur"
            }
        ],
        "placeholder": "请选择状态",
        "dicData": DIC["userInfostatusDic"]
    },
    {
        "label": "直播状态",
        "prop": "playStatus",
        "search": true,
        "type": "tag",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false,
        "placeholder": "请选择直播状态",
        "dicData": DIC["videoChannelplayStatusDic"]
    },
    {
        "label": "频道类型",
        "prop": "channelType",
        "search": true,
        "type": "tag",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false,
        "rules": [
            {
                "required": true,
                "message": "请输入频道类型",
                "trigger": "blur"
            }
        ],
        "placeholder": "请选择频道类型",
        "dicData": DIC["videoChannelchannelTypeDic"]
    },
    {
        "label": "开启录制",
        "prop": "openRecordFlag",
        "search": false,
        "type": "tag",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false,        
        "placeholder": "请选择开启录制",
        "dicData": DIC["openRecordFlagDic"]
    },
    {
        "label": "频道名称",
        "prop": "channelName",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false
    },
    {
        "label": "直播次数",
        "prop": "playNum",
        "search": false,
        "type": "number",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false
    },
    {
        "label": "封面",
        "prop": "coverImg",
        "search": false,
        "type": "upload",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false,
        "listType": "picture-img",
        "showFileList": false,
        "imgHeight": 60,
        "imgWidth": "auto",
        "action": "/upload/image",
        "tip": "只能上传jpg/png文件，且不超过500kb"
    },
    {
        "label": "排序值",
        "prop": "sort",
        "search": false,
        "type": "number",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false
    },
    {
        "label": "视频推流地址",
        "prop": "videoPushUrl",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "300",
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false
    },
    {
        "label": "直播拉流地址(播放流)",
        "prop": "videoPlayUrl",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "300",
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false
    },
    // {
    //     "label": "本次直播访问数量",
    //     "prop": "viewNum",
    //     "search": false,
    //     "type": "number",
    //     "fixed": false,
    //     "width": "auto",
    //     "row": false,
    //     "minWidth": "130",
    //     "readonly": false,
    //     "span": 12,
    //     "display": true,
    //     "hide": false
    // },
    {
        "label": "实际访问数量",
        "prop": "joinNum",
        "search": false,
        "type": "number",
        "fixed": false,
        "width": "170",
        "row": false,
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false
    },
    {
        "label": "虚拟访问数量",
        "prop": "joinNumVirtual",
        "search": false,
        "type": "number",
        "fixed": false,
        "width": "170",
        "row": false,
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false
    },
    {
        "label": "收藏数量",
        "prop": "collectNum",
        "search": false,
        "type": "number",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false
    },
    {
        "label": "当前直播开始时间",
        "prop": "playStartTime",
        "search": false,
        "type": "datetime",
        "fixed": false,
        "width": "170",
        "row": false,
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false
    },
    {
        "label": "上次开播时间",
        "prop": "lastPlayStartTime",
        "search": false,
        "type": "datetime",
        "fixed": false,
        "width": "170",
        "row": false,
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false
    },
    {
        "label": "上次直播结束时间",
        "prop": "lastPlayEndTime",
        "search": false,
        "type": "datetime",
        "fixed": false,
        "width": "170",
        "row": false,
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false
    },
    {
        "label": "IM聊天群ID",
        "prop": "imGroupId",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": true,
        "hide": false
    },
    
    {
        "label": "创建时间",
        "prop": "createTime",
        "search": false,
        "type": "datetime",
        "fixed": false,
        "width": "170",
        "row": false,
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false
    },
    {
        "label": "创建人",
        "prop": "creator",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false
    },
    {
        "label": "修改时间",
        "prop": "modifyTime",
        "search": false,
        "type": "datetime",
        "fixed": false,
        "width": "170",
        "row": false,
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false
    },
    {
        "label": "修改人",
        "prop": "modifier",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false
    }
]
    };
